import turtle as t
t.speed(10)
t.pensize(3)

t.hideturtle()
colors=['red','green','blue']

for i in range(100):
    t.color(colors[i%3])
    t.forward(5*i)
    t.left(118)

t.done()